package edu.suda.xsap.dto.convert;

import edu.suda.xsap.dto.Statistics_chargeDto;
import edu.suda.xsap.dto.Statistics_totcourseDto;
import edu.suda.xsap.entity.Statistics_charge;
import edu.suda.xsap.entity.Statistics_totcourse;
import org.mapstruct.Mapper;
import org.mapstruct.Mapping;

import java.util.List;

@Mapper(componentModel = "spring")
public interface Statistics_totcourseConvert {

    @Mapping(source="year", target = "year")
    @Mapping(source="month", target = "month")
    @Mapping(source="totcourse", target = "totcourse")
    @Mapping(source="quarter", target = "quarter")
    Statistics_totcourseDto toDto(Statistics_totcourse statistics_totcourse);

    List<Statistics_totcourseDto> toDtoList(List<Statistics_totcourse> statisticsTotcourses);
}
